﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main1.Master" AutoEventWireup="true" CodeBehind="ArticleDetail.aspx.cs" Inherits="ProjectSem40701.ArticleDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="content_tab">
		<div class="content_tab_title"><span>Chi tiết tin tức</span></div>
		<div class="content_tab1">
		    <table cellpadding="0px" cellspacing="0px" width="100%">
            <tr>
                <td>
                    <%--<asp:DataList ID="DataList1" runat="server" DataKeyField="ArticleID" 
                        DataSourceID="ObjectDataSource1" Width="100%" Visible="True">
                        <ItemTemplate>
                            <table cellpadding="0px" cellspacing="0px" width="100%" \>
                                <tr>
                                    <td>--%>
                                        <asp:DataList ID="DataList1" runat="server" DataKeyField="ArticleID" 
                                            DataSourceID="ObjectDataSource1">
                                            <ItemTemplate>
                                                <table style="width: 100%; text-align:left">
                                                    <tr>
                                                        <td style="text-align: justify; padding-top: 5px; padding-left: 7px; padding-right: 7px; font-weight: bold; color: #FF0000; font-size: 12px;">
                                                            <asp:Label ID="lblArticleName" runat="server" 
                                                                Text='<%# Eval("ArticleTitle") %>'></asp:Label>
                                                           
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="left" style="padding-top: 5px; padding-left: 5px" valign="top">
                                                            <asp:Label ID="lblContent" runat="server" 
                                                                OnDataBinding="lblContent_DataBinding" Text='<%# Eval("ArticleContent") %>'></asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:DataList>
                                    <%--</td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>--%>

                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                        OldValuesParameterFormatString="original_{0}" 
                        SelectMethod="Get_tbl_Article_Select_All_By_ArticleID" 
                        TypeName="ProjectSem40701.MainDataset.ArticleTableAdapters.tbl_ArticleTableAdapter">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="ArticleID" QueryStringField="ArticleID" 
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>

                </td>
            </tr>
        </table>
		</div>
</div>

</asp:Content>
